/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.rs.dao;

import com.xy.biz.rs.domain.po.RecordTemplateGroupPO;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2022-1-4
 */
public interface RecordTemplateGroupDao {

    /**
     * 保存
     *
     * @param recordTemplateGroupPO
     */
    int saveRecordTemplateGroup(RecordTemplateGroupPO recordTemplateGroupPO);

    int saveAllRecordTemplateGroup(Collection<RecordTemplateGroupPO> collection);

    /**
     * 更新
     *
     * @param recordTemplateGroupPO
     */
    int updateRecordTemplateGroup(RecordTemplateGroupPO recordTemplateGroupPO);

    int updateAllRecordTemplateGroup(Collection<RecordTemplateGroupPO> collection);

    /**
     * 删除
     *
     * @param recordTemplateGroupId
     */
    int deleteRecordTemplateGroup(Long recordTemplateGroupId);

    /**
     * 查找一个
     *
     * @param recordTemplateGroupId
     * @return
     */
    RecordTemplateGroupPO getRecordTemplateGroup(Long recordTemplateGroupId);

    /**
     * 查找多条
     *
     * @param collection
     * @return
     */
    List<RecordTemplateGroupPO> listRecordTemplateGroupByTemplateIdList(Collection<Long> collection);

}
